package com.sunspring.jbug.service;

import com.sunspring.jbug.dto.BugInfo;
import com.sunspring.jbug.mapper.BugMapper;
import com.sunspring.jbug.param.BugParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wulei
 * @date 2019-03-06
 **/
@Service
public class BugService {

    @Autowired
    private BugMapper bugMapper;

    /**
     * 新增bug
     * @param bugParam BugParam bean
     */
    public Integer add(BugParam bugParam) {
        bugMapper.addSelective(bugParam);
        return bugParam.getId();
    }

    public List<BugInfo> getBugList() {

    }
}
